package com.itgungnir.designpattern.decorator;

public class Soy extends CondimentDecorator {
	private Beverage beverage;

	public Soy(Beverage beverage) {
		this.beverage = beverage;
	}

	@Override
	public String getDescription() {
		return beverage.getDescription() + " + Soy";
	}

	@Override
	public double getCost() {
		return beverage.getCost() + 1.2;
	}
}